package com.cxl.parser;

import org.apache.commons.lang.StringUtils;

public class ShopFactory {
	
	public static InfoGrab instance(String url)
	{
		if(StringUtils.isEmpty(url))
		{
			return null;
		}
		if(url!=null&& url.indexOf("dangdang")!=-1)
			return new GrabDangDang();
		if(url!=null&& url.indexOf("amazon")!=-1)
			return new GrabAmazon();
		if(url!=null&& url.indexOf("360buy")!=-1)
			return new Grab360Buy();
		if(url!=null&& url.indexOf("taobao")!=-1)
			return new GrabTaoBao();
		
		
		return null;
	}

}
